const mysql=require('mysql');
function dbConfig(sql,arr,fun) {
  let db=mysql.createConnection({
    host:'localhost',
    database:'sequelize',
    user:'root',
    password:'mWXS19971222@.',
    port:3306
  })
  db.connect();
  db.query(sql,arr,fun);
  db.end();
}
module.exports={
  dbConfig
}